package zb.ws.adapter;

import com.google.gson.Gson;
import com.neovisionaries.ws.client.WebSocket;

import zb.ws.entity.Account;
import zb.ws.entity.DeptResult;

public class ZbAdapter implements IAdapter{

	@Override
	public void onReceive(WebSocket ws, String message) {
		System.out.println(message);
		
		
//		Account account = new Gson().fromJson(message, Account.class);
//		System.out.println(account.getData().getCoins().get(0));
		
//		DeptResult dept = new Gson().fromJson(message, DeptResult.class);
//		System.out.println(dept.getAsks().get(0).getPrice()+"  "+dept.getBids().get(0).getPrice());
	}


}
